<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="module">
        import data from './a.js'
        import {data0} from './a.js'
        // debugger
        console.info(data)
        console.info(data0)
    </script>
    <script>
        // es6语法 
        // class Person {
        //     constructor(ename) {
        //         this.ename = ename
        //     }
        //     showEname() {
        //         console.info(this.ename)
        //     }
        // }
        // debugger
        // var p1 = new Person("AAAAA")
        // console.info(p1)
        // p1.showEname()
        
 
        function Person(ename) {
            this.ename = ename;
            this.showEname=function() {
                console.info(this.ename)
            }
        }

        var p1 = new Person("BBBBBB")
        p1.showEname();

        // 继承：
        function Student(ename) {
            debugger
            // this.__proto__ = new Person(ename);
            // Person.call(this, ename)
        }
        // Student.prototype = new Person()
        var stu = new Student("CCCCCC");
        stu.showEname()
        debugger

        var str = "";
        if (str) { // 如果是“”， undefined,  null  , 0 都是false

        } else {

        }

    </script>
   
</body>
</html>